﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL_V1.App_Code.DBBroker;
using EntityObjects;

namespace BAL.Controller
{
   public class NotificationController
    {
        protected RequisitionDBBroker Requisitionbk;
        protected EmployeeDBBroker empbk;
        protected DisbursementDBBroker Disbursebk;
        public NotificationController()
        {
            Requisitionbk = RequisitionDBBroker.getRequisitionDBBroker();
            empbk = EmployeeDBBroker.getEmployeeDBBroker();
        }
        public Requisition getLastDataofGivenEmployee(String empId)
        {
            return Requisitionbk.getLastDataofGivenEmployee(empId);
        }
        public List<Disbursement> selectDisbursementbyDeptId(String deptId)
        {
            return Disbursebk.selectDisbursementbyDeptId(deptId);
        
        }
        public int getRequistionCountByApprovedStatus()
       {
           return Requisitionbk.getRequestedCountByApprovedStatus();
       }
        public List<Department> getRequestedDepartmentByApprovedStatus()
        {
            return Requisitionbk.getRequestedDepartmentByApprovedStatus();
        }
        //public List<Category> getRequestedCategorybyApprovedStatus()
        //{
        //    return Requisitionbk.getRequestedCategorybyApprovedStatus();
        //}
    }
}
